package pl.poznan.put.cs.to;

import pl.poznan.put.cs.to.tsp.hea.HybridEvolutionaryAlgorithm;
import pl.poznan.put.cs.to.tsp.listeners.EmptyTSPListener;
import pl.poznan.put.cs.to.tsp.listeners.TSPListener;

public class TOApp {

	private static TSPListener tspListener;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		if (args.length != 1) {
			throw new RuntimeException("Invalid number of arguments!");
		}

		TOApp.tspListener = new EmptyTSPListener();

		HybridEvolutionaryAlgorithm hea = new HybridEvolutionaryAlgorithm(
				args[0], TOApp.tspListener);
		System.out.println((hea.getLengthA() + hea.getLengthB()));
	}

}
